//
//  UIColor+RandomColor.m
//  QQ空间
//
//  Created by zhangping on 16/1/18.
//  Copyright © 2016年 zhangping. All rights reserved.
//

#import "UIColor+RandomColor.h"

@implementation UIColor (RandomColor)

/// 随机颜色
+ (instancetype)randomColor {
    CGFloat r = arc4random_uniform(256) / 255.0;
    CGFloat g = arc4random_uniform(256) / 255.0;
    CGFloat b = arc4random_uniform(256) / 255.0;
    
    return [UIColor colorWithRed:r green:g blue:b alpha:1];
}

@end
